package com.itheima.test0906.test06;

public class SystemTest {
    public static void main(String[] args) {

        long start = System.currentTimeMillis();
        for (int i = 0; i < 10000; i++) {
            System.out.println("for循环执行了" + i + "次");
        }
        System.out.println("for循环执行了1W次");
        long end = System.currentTimeMillis();
        System.out.println("用时" + (end-start) + "ms");

        int[]arr = {1,2,3,4,5};

        int[] arr1 = new int[10];
        System.arraycopy(arr,2,arr1,2,arr.length-2);
        for (int i = 0; i <arr.length; i++) {
            System.out.println(arr1[i]);
        }
    }
}
